package hngc.com;

import java.util.Scanner;

public class Box20 {
    public static void main(String[] args) {
        int x=0;
        int y=0;
        int a=0;
        Scanner scanner=new Scanner(System.in);
        System.out.println("输入x值：");
        while (scanner.hasNext()){
            try {
                x=scanner.nextInt();
                System.out.println("输入y值：");
                y=scanner.nextInt();
                break;
            }catch (Exception e){
                System.out.println("必须输入整数");
                break;
            }
        }
        if(x>=80&&x>=60){
            if(x>=90||y>=90){
                return;
            }else {
                a=2;
                System.out.println("a="+a);
            }
        }else {
            if(x<=70||y<=70){
                a=4;
                System.out.println("a="+a);
            }else {
                a=4;
                System.out.println("a="+a);
            }
        }
        scanner.close();
    }
}
